<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sp" uri="http://www.springframework.org/tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>My JSP 'add.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />
<style type="text/css">
#tr_upload td {
	display: none;
	visibility: hidden;
}
</style>
</head>

<body class="mainframe">
  <form id="companyForm" action="/admin/company/edit.dhtml" method="post">
    <input type="hidden" id="companyId" name="company.Id" value="<c:out value="${company.id}" />" /> <input type="hidden"
      id="companyScoreSection" name="company.scoreSection" value="<c:out value="${company.scoreSection}" />" />
    <table class="admin_table">
      <caption>修改公司</caption>
      <c:choose>
        <c:when test="${message.info != null }">
          <tr>
            <td colspan="2"><sp:message code="${message.info}" text="" /></td>
          </tr>
        </c:when>
        <c:otherwise>
          <tr>
            <td>公司名称</td>
            <td><input type="text" id="companyName" name="company.name" value="<c:out value="company.name" />" /><span id="companyNameTip"></span></td>
          </tr>
          <tr>
            <td>公司简称</td>
            <td><input type="text" id="companyShortname" name="company.shortname" value="<c:out value="company.shortname" />" /><span id="companyShortnameTip"></span></td>
          </tr>
          <tr>
            <td>地址</td>
            <td><input type="text" id="companyAddress" name="company.address" value="<c:out value="company.address" />" /><span id="companyAddressTip"></span></td>
          </tr>
          <tr>
            <td>地区代码</td>
            <td><input type="text" id="companyAreacode" name="company.areacode" value="<c:out value="company.areacode" />" /><span id="companyAreacodeTip"></span></td>
          </tr>
          <tr>
            <td>简介</td>
            <td><textarea id="companyNote" name="company.note" rows="4" cols="100"><c:out value="company.note" /></textarea></td>
          </tr>
          <tr>
            <td>主营业务</td>
            <td><input type="text" id="companyBussiness" name="company.bussiness" value="<c:out value="company.bussiness" />" /><span id="companyBussinessTip"></span></td>
          </tr>
          <tr>
            <td>主席（法人）</td>
            <td><input type="text" id="companyChairman" name="company.chairman" value="<c:out value="company.chairman" />" /><span id="companyChairmanTip"></span></td>
          </tr>
          <tr>
            <td>主席（法人）职位</td>
            <td><input type="text" id="companyChairmanTitle" name="company.chairmanTitle" value="<c:out value="company.chairmanTitle" />" /><span id="companyChairmanTitleTip"></span></td>
          </tr>
          <tr>
            <td>国家</td>
            <td><input type="text" id="companyCountry" name="company.country" value="<c:out value="company.country" />" /><span id="companyCountryTip"></span></td>
          </tr>
          <tr>
            <td>省</td>
            <td><input type="text" id="companyProvince" name="company.province" value="<c:out value="company.province" />" /><span id="companyProvinceTip"></span></td>
          </tr>
          <tr>
            <td>市</td>
            <td><input type="text" id="companyCity" name="company.city" value="<c:out value="company.city" />" /><span id="companyCityTip"></span></td>
          </tr>
          <tr>
            <td>区县</td>
            <td><input type="text" id="companyCounty" name="company.county" value="<c:out value="company.county" />" /><span id="companyCountyTip"></span></td>
          </tr>
          <tr>
            <td>E-mail</td>
            <td><input type="text" id="companyEmail" name="company.email" value="<c:out value="company.email" />" /><span id="companyEmailTip"></span></td>
          </tr>
          <tr>
            <td>传真</td>
            <td><input type="text" id="companyFax" name="company.fax" value="<c:out value="company.fax" />" /><span id="companyFaxTip"></span></td>
          </tr>
          <tr>
            <td>行业</td>
            <td><input type="text" id="companyIndustry" name="company.industry" value="<c:out value="company.industry" />" /><span id="companyIndustryTip"></span></td>
          </tr>
          <tr>
            <td>关键词</td>
            <td><input type="text" id="companyKeyword" name="company.keyword" value="<c:out value="company.keyword" />" /><span id="companyKeywordTip"></span></td>
          </tr>
          <tr>
            <td>联系人</td>
            <td><input type="text" id="companyLinkman" name="company.linkman" value="<c:out value="company.linkman" />" /><span id="companyLinkmanTip"></span></td>
          </tr>
          <tr>
            <td>联系人职位</td>
            <td><input type="text" id="companyLinkmanTitle" name="company.linkmanTitle" value="<c:out value="company.linkmanTitle" />" /><span id="companyLinkmanTitleTip"></span></td>
          </tr>
          <tr>
            <td>LOGO</td>
            <td><input type="text" id="companyLogo" name="company.logo" value="<c:out value="company.logo" />" /><span id="companyLogoTip"></span></td>
          </tr>
          <tr>
            <td>所有权</td>
            <td><input type="text" id="companyOwnership" name="company.ownership" value="<c:out value="company.ownership" />" /><span id="companyOwnershipTip"></span></td>
          </tr>
          <tr>
            <td>电话</td>
            <td><input type="text" id="companyPhone" name="company.phone" value="<c:out value="company.phone" />" /><span id="companyPhoneTip"></span></td>
          </tr>
          <tr>
            <td>等级</td>
            <td><input type="text" id="companyRank" name="company.rank" value="<c:out value="company.rank" />" /><span id="companyRankTip"></span></td>
          </tr>
          <tr>
            <td>注册资本</td>
            <td><input type="text" id="companyRegisteredCapital" name="company.registeredCapital" value="<c:out value="company.registeredCapital" />" /><span id="companyRegisteredCapitalTip"></span></td>
          </tr>
          <tr>
            <td>营业额</td>
            <td><input type="text" id="companyTurnover" name="company.turnover" value="<c:out value="company.turnover" />" /><span id="companyTurnoverTip"></span></td>
          </tr>
          <tr>
            <td>唯一码</td>
            <td><input type="text" id="companyUniqueCode" name="company.uniqueCode" value="<c:out value="company.uniqueCode" />" /><span id="companyUniqueCodeTip"></span></td>
          </tr>
          <tr>
            <td>是否前台显示</td>
            <td><input type="text" id="companyUseFlag" name="company.useFlag" value="<c:out value="company.useFlag" />" /><span id="companyUseFlagTip"></span></td>
          </tr>
          <tr>
            <td>公司网址</td>
            <td><input type="text" id="companyWeb" name="company.web" value="<c:out value="company.web" />" /><span id="companyWebTip"></span></td>
          </tr>
          <tr>
            <td></td>
            <td><input type="submit" id="companySubmit" value="修改" class="button01" /></td>
          </tr>
        </c:otherwise>
      </c:choose>
    </table>
  </form>
  <script type="text/javascript">
			// 表单验证
			var formCheck = $.formCheck();
			formCheck.regAllEmpty("companyTitle", {
				onShow : "输入目录名称",
				onFocus : "此项为必填",
				onError : "此项为必填",
				onCorrect : "目录名称输入正确"
			}, true);
			formCheck.formCheck("companyForm");
		</script>
  <script type="text/javascript" src="/js/admin/company.js" ></script>
</body>
</html>